package com.wulwu.permission.enums;

import org.springframework.http.HttpStatus;

public enum ResultCode {

    SUCCESS(200,"成功"),
    REQUEST_ERROR(400,"服务器不理解请求语法"),
    FAIL(500,"失败，服务器异常"),

    LOGIN_SUCCESS(10001,"登录成功"),
    LOGIN_ERROR(10002,"登录失败"),
    LOGIN_FORBIDDEN(10003, "您未登录，没有访问权限"),
    ;

    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
